package Solution_3;

public class Card {
    private int cardId;
    private  double remain;
    private String username;
    private String password;

    private int callingTime;
    private double data;

    public int getCardId() {
        return cardId;
    }

    public void setCardId(int cardId) {
        this.cardId = cardId;
    }

    public double getRemain() {
        return remain;
    }

    public void setRemain(double remain) {
        this.remain = remain;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getCallingTime() {
        return callingTime;
    }

    public void setCallingTime(int callingTime) {
        this.callingTime = callingTime;
    }

    public double getData() {
        return data;
    }

    public void setData(double data) {
        this.data = data;
    }


    public void show() {
        System.out.println("卡号: " + this.cardId + "  用户名 ：" + this.username +
                " 当前余额 " + this.remain + "该卡的上网流量 ： " + getData()
        + "该卡的通话时长 : " + getCallingTime()) ;
    }




}
